package com.dangdang.entity;

import java.util.Date;
import java.util.List;

public class Order {
    private Integer id;
    private Double price;
    private Date date;
    private Integer state;
    private Integer address_id;
    private Integer user_id;
    private List<OrderItem> orderItemList;

    public Order() {
    }

    public Order(Integer id, Double price, Date date, Integer state, Integer address_id, Integer user_id, List<OrderItem> orderItemList) {
        this.id = id;
        this.price = price;
        this.date = date;
        this.state = state;
        this.address_id = address_id;
        this.user_id = user_id;
        this.orderItemList = orderItemList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getAddress_id() {
        return address_id;
    }

    public void setAddress_id(Integer address_id) {
        this.address_id = address_id;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public List<OrderItem> getOrderItemList() {
        return orderItemList;
    }

    public void setOrderItemList(List<OrderItem> orderItemList) {
        this.orderItemList = orderItemList;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", price=" + price +
                ", date=" + date +
                ", state=" + state +
                ", address_id=" + address_id +
                ", user_id=" + user_id +
                ", orderItemList=" + orderItemList +
                '}';
    }
}
